Moving API methods to a single Python module