Code Reuse and Modularity in Python