Move to argparse and update OAuth 2.0 flow library