<gh_stars>1-10
import sys
from memjogger.api import Handle

if __name__ == '__main__':
    api = Handle(email = sys.argv[1], password = sys.argv[2])
    result = api.get_card_sets()
    cs = None
    for cs in result.data['card_sets']:
        print cs['id'], cs['name']
    
    if cs:
        result = api.get_card_set(cs['id'])
        cs = result.data['card_set']
        print 'Last set:' , cs['id'], cs['name']