I suggest making all status information optional:

'''for key in request.GET.keys():
    if key == "version":
        device_info["key"] = "version"
    elif key == "....
'''