import requests


def get_json_resource(resource_uri):
    """
    Get a uri which returns JSON, return Python object.

    Returns None if the request status code is 4xx or 5xx.

    :param resource_uri: uri to request
    :return: Python dict/object from the request JSON.
    """
    r = requests.get(resource_uri)
    if r.status_code == requests.codes.ok:
        return r.json()
    else:
        return None