import json from actions import Action print "Running HoursFillerCmd" act = Action() act.login() act.remove_all_existing() exit(0) d = dict(project="GO-LAB", unit="Unidad Internet", concept="I+D Desarrollo Proyecto", date="1/1/2014", hours="1") act.add_entry(**d) act.add_entry(**d) act.add_entry(**d) entries_raw = open("entries.json").read() entries = json.loads(entries_raw) act.add_entries(entries["entries"])