fixed wsgi to work with new api, changed requirements