Fix pep8 convention and chages suggested by ``@pingou``
This commit few pep8 changes and changing ``lib/git.py`` to use
``_get_project`` instead of ``get_authorized_project``
Certain formatting changes have also been resolved
Signed-off-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com></farhaan.bukhsh@gmail.com>