from php to python (: