Restructured module now that it includes some python code.