Python usage outside of the cli.