Thanks guys, I suspected as much. I think the author was running the code in python from the command window.