fix typos
pep8
use "is not None"
fix exception in case of missing authentication method