Trying to allow main() to operate from Python