> "If all went well, a file-like object is returned". I can make the file-like means having similar interface to a file object (methods read, readline, etc.), but not a real file though, mxTidy.tidy most probably requires a real file to be passed, just you look into Tidy.py (line 38) and you'll know for sure -- bromden[at]gazeta.pl