python: some small cleanups to startup.py