def check_for_new_version(release_api_response):
    '''
    Checks for a new MCEdit-Unified version, if the current one is not in development mode
    '''
    try:
        if not is_dev():
            # release_api_response = json.loads(urllib2.urlopen("https://api.github.com/repos/Khroki/MCEdit-Unified/releases").read())
            version = release_api_response[0]
            if version["tag_name"] > get_release_tag():
                is_64bit = sys.maxsize > 2 ** 32
                assets = version["assets"]
                for asset in assets:
                    if _platform == "win32":
                        version["OS Target"] = "windows"
                        if "Win" in asset["name"]:
                            if is_64bit:
                                if "64bit" in asset["name"]:
                                    version["asset"] = asset
                                    version["target_arch"] = "64bit"
                            else:
                                if "32bit" in asset["name"]:
                                    version["asset"] = asset
                                    version["target_arch"] = "32bit"
                    elif _platform == "darwin":
                        version["OS Target"] = "osx"
                        if "OSX" in asset["name"]:
                            version["asset"] = asset
                            version["target_arch"] = "64bit"
                return version
            return False
        else:
            return False
    except:
        print "An error occurred checking for updates."
        return False

    Checks for a new MCEdit-Unified version, if the current one is not in development mode
    
release.py