#!/usr/bin/env python3

try:
    import configparser
except ImportError:
    raise ImportError("Must be using Python 3")

import argparse
import os
import subprocess


UBER=True


def extract_username(shortlog):
    shortlog = shortlog.strip()
    email = shortlog[shortlog.rfind("<")+1:]
    email = email[:email.find(">")]
    if UBER:
        if email[-9:] == '@uber.com':
            return email[:-9]
        else:
            return None
    return email


def get_reviewers():
    reviewers = []
    git_shortlog_command = ['git', 'shortlog', '-sne']
    process = subprocess.run(git_shortlog_command, stdout=subprocess.PIPE)
    git_shortlog = process.stdout.decode("utf-8").split("\n")
    reviewers = [extract_username(shortlog) for shortlog in git_shortlog]
    reviewers = [username for username in reviewers if username]
    return reviewers


def show_reviewers(reviewers):
    print(", ".join(reviewers))

def main():
    description = "Suggest reviewers for your diff.\n"
    description += "https://github.com/albertyw/git-reviewers"
    parser = argparse.ArgumentParser(description=description)
    args = parser.parse_args()

    reviewers = get_reviewers()
    show_reviewers(reviewers)


if __name__ == "__main__":
    main()

@@ -21,106 +21,8 @@
 n3%0A%0A
-try:%0A    import configparser%0Aexcept ImportError:%0A    raise ImportError(%22Must be using Python 3%22)%0A%0A
 impo
@@ -37,18 +37,8 @@
 rse%0A
-import os%0A
 impo
@@ -55,15 +55,106 @@
 ess%0A
+import sys%0A%0Aif sys.version_info %3C (3, 0):%0A    raise SystemError(%22Must be using Python 3%22)
 %0A%0AUBER
-=
+ = 
 True
@@ -897,16 +897,17 @@
 wers))%0A%0A
+%0A
 def main
@@ -1097,15 +1097,8 @@
 %0A   
- args =
  par

Fix flake8