Convert to a python module