Using python magic to simplify using Amazon Simple Workflow