moved python to single file