Preliminary attempt to Python