 <p>I'm guessing that it has to do with using a keyword as a function name. I tried defining a function <code>print()</code> in a module just now for testing and got the same sort of error. Try changing the name of this function slightly and see if it fixes the problem.</p>