Adding first pass code for acquiring images in python