Python translation is syntactically correct. Now for the grotty