Quote:
|
I've been hunting around, and everything seems to indicate that there should be nothing wrong with my code
|
Very bad assumption to make

. Just because you can't see the problem, doesn't mean that it's not there.
Eh... you're passing a method (fileObj.write) to a function that wants a file object as its parameter.
storlines takes a command and a file object, retrlines take a command and a callback. You must have mistaken them somehow.
A little advice: Look at the trackback. It'll show you what you're passing to what function. Cross reference that with the Python documentation, and you can't go wrong.