#!/usr/bin/env python

import requests
import pprint
import sys
import json

def main(password):
  payload = {'email': '<EMAIL>', 'password': password}

  r = requests.put('https://submit.cs.ucsb.edu/session', data=json.dumps(payload))

  print r.text


if __name__ == "__main__":

    if len(sys.argv) < 2:
        print "Usage: " + sys.argv[0] + " password"
        sys.exit()
        
    main(sys.argv[1])

#!/usr/bin/env python

import requests
import pprint
import sys
import json

def main(password):
  payload = {'email': '<EMAIL>', 'password': password}

  r = requests.put('https://submit.cs.ucsb.edu/session', data=json.dumps(payload))

  print r.text


if __name__ == "__main__":

    if len(sys.argv) < 2:
        print "Usage: " + sys.argv[0] + " password"
        sys.exit()
        
    main(sys.argv[1])

#!/usr/bin/env python