Fix failing test on py277
Add Sphinx to requirements
Print error message to stderr