Code:
import urllib2 as u import os as o inn = \'dword.txt\' w = open(inn) z = w.readline() b = w.readline() c = w.readline() x = w.readline
I had yet another issue with the same error!
Turns out I had created a property on a model, but was stupidly calling that property with parentheses.
Hope this helps someone!