The Google Python style guide might be a good start: https://google.github.io/styleguide/pyguide.html
I've also heard that at Google they require assert isinstance for every parameter of every function.
New Relic has very good tools for profiling python code if you're running a service.