gitstatus compatibility with python 3