I don't quite know how to go about doing this, but I'd start with finding out exactly what you get from the camera, and then figuring out what to do with that in Python. If you want more help from us than that sentence, you'll need to provide at the very least the model of the camera.
Due to the reasons discussed here
we will be moving to python-forum.io
on October 1, 2016.
This forum will be locked down and no one will be able to post/edit/create threads, etc. here from thereafter. Please create an account at the new site to continue discussion.