Move error messages to stderr
Merge pull request #37 from nephila/feature/fix_stdout-err

Move error messages to stderr
getting indentions of asserts right, fixing their reference data to be correct on the way and making the lines pep8 compatible