Remove prints
Move stdlib/3rd-party imports to the top
`sys.exit(1)` on startup error
Add client folder to sys.path

Otherwise this would cause bugs in client.brain
Moved all imports to the top and changed `--local` detection