from datetime import datetime


def get_rate_limit_info(headers):
    """ Get Rate Limit Information from response headers (A Dictionary)
    :returns: Dictionary of 'remaining' (int), 'limit' (int), 'reset' (time)
    """
    ret = {}
    ret['remaining'] = int(headers.get('x-rate-limit-remaining'))
    ret['limit'] = int(headers.get('x-rate-limit-limit'))
    ret['reset'] = datetime.fromtimestamp(int(headers.get('x-rate-limit-reset')))
    return ret