Port to Python v0.1