Handle unauthorized response and raise UnauthorizeError
Convert different forms of short urls into full well-formed endpoint
Python 2.6. Fix string formatting