file() is not supported in python 3. use open() instead. file: WSDL.py line: 62 line of code: file(wsdlsource)