Python Program Structure Best Practices