import requests
import json


def post(url, data = {}):
    """
    Submit http post to a URL and parse the JSON that's returned
    :param url: The URL to post to
    :param data: Map defining the post params to submit. keys and values should be strings
    :return: The JSON response
    """
    r = requests.post(url, data)
    return json.loads(r.text)