User Activity

I want to take picture in Python using Canon camera,can I connect my camera to my computer and use it from my script?