added bitbucket web status hook and refactored github one to follow PEP8