Changed API to recieve and return python dicts instead of json strings
Updated api to send and recieve python data types and updated tests and views accordingly