What version of python did you test this with? This is not valid, it doesn't execute