Fixed name errors
Actually return HTTP 500 on internal errors
Run flake8 over zato-server