python notes and best practices