Jira/qd 50

https://bugs.indeed.com/browse/QD-50

Merge the 2 commits from #292
Merge the 2 commits from lukeweber@04d47d0
switch error output to go to stderr
What else could it be if not `unicode`?
Maybe add an else clause:
```python
else:
    self.stderr.write(str(stuff) +  '\n')
```