python code modularity