Allow Dot.write() to work with file-like objects as well.
Merge pull request #5 from chebee7i/pydotwrite

Allow Dot.write() to work with file-like objects as well.