python wrapper for taking and saving a pic