def load_prices(ticker, parse_json=True):
    (url, env) = get_url(ticker)
    cookie_jar = cookiejar.CookieJar()
    opener = request.build_opener(request.HTTPCookieProcessor(cookie_jar))
    opener.addheaders = build_headers(url, env)
    with opener.open(url) as link:
        gzip_response = link.read()
        binary_response = (gzip_response.decode() if (env == 'development') else decompress(gzip_response))
        parsed_content = loads(binary_response)
        content = parse_epoch_time(parsed_content)
    return (dumps(content) if parse_json else content)
def load_prices(ticker, parse_json=True):
    (url, env) = get_url(ticker)
    cookie_jar = cookiejar.CookieJar()
    opener = request.build_opener(request.HTTPCookieProcessor(cookie_jar))
    opener.addheaders = build_headers(url, env)
    with opener.open(url) as link:
        gzip_response = link.read()
        binary_response = (gzip_response.decode() if (env == 'development') else decompress(gzip_response))
        parsed_content = loads(binary_response)
        content = parse_epoch_time(parsed_content)
    return (dumps(content) if parse_json else content)