code: def git(self, *arguments):
          
          process = subprocess.Popen(['git'] + list(arguments),
                                     stdout=subprocess.PIPE,
                                     cwd=self.cwd)
          out = process.communicate()[0].decode('UTF-8')
          code = process.returncode
          return code, out
docs: Return (exit code, output) from git.