Fix incorrectly passed kwargs to before_request method
Add alternative install method for pip