Updated code to follow PEP8 style guide. Added support for custom CAS routes. Library previously defaulted to '/cas' subroute.