@app.route('/api/users/<username>')
def get_user_media(username):
    job = request_queue.enqueue(fetch_user_photos, username)
    time.sleep(7)
    result = job.result
    if (result is None):
        return jsonify({'msg': 'Still processing :('})
    elif (result.status_code == 200):
        data = result.json()
        return jsonify(**data)
    else:
        return jsonify({'msg': 'Oh gawd no'})
@app.route('/api/users/<username>')
def get_user_media(username):
    job = request_queue.enqueue(fetch_user_photos, username)
    time.sleep(7)
    result = job.result
    if (result is None):
        return jsonify({'msg': 'Still processing :('})
    elif (result.status_code == 200):
        data = result.json()
        return jsonify(**data)
    else:
        return jsonify({'msg': 'Oh gawd no'})