split out python code into sourced file