from time import sleep
from os import remove

lvlp = "CustomSongs/" + input("Please provide path to level folder (use /):\t.../CustomSongs/")
print("Working...")
f = None
try:
    f = open(lvlp+"/info.json","r")
except FileNotFoundError:
    print("FileNotFoundError:  Level does not exist!")
    sleep(1)
    quit()
info_list = f.read().split('"')
if info_list[info_list.index("environmentName")+2] != "NiceEnvironment":
    if input("It looks like the environment of this level is not the NiceEnvironment.  Do you still want to proceed (y/n)?\t").lower() != y:
        quit()
for dif in ("Easy","Normal","Hard","Expert","ExpertPlus"):
    try:
        f = open(lvlp+"/"+dif+".json","r")
        switcht2i = list()
        switcht3i = list()
        switcht12i = list()
        switcht13i = list()
        data_list = f.read().split('"')
        final_data_tw = str()
        offseti = data_list.index("_events")
        toofar = data_list.index("_notes")
        
        try:
            while offseti < toofar:
                offseti = data_list.index("_type",offseti,toofar) + 1
                
                if data_list[offseti] == ":2,":
                    switcht3i.append(offseti)
                elif data_list[offseti] == ":3,":
                    switcht2i.append(offseti)
                elif data_list[offseti] == ":12,":
                    switcht13i.append(offseti)
                elif data_list[offseti] == ":13,":
                    switcht12i.append(offseti)
        
        except ValueError:
            pass
        
        for i in switcht2i:
            data_list[i] = ":2,"
        for i in switcht3i:
            data_list[i] = ":3,"
        for i in switcht12i:
            data_list[i] = ":12,"
        for i in switcht13i:
            data_list[i] = ":13,"
        
        f.close()
        remove(lvlp+"/"+dif+".json")
        f = open(lvlp+"/"+dif+".json","w")
        for i in range(len(data_list)):
            final_data_tw += data_list[i]
            if i != len(data_list) - 1:
                final_data_tw += '"'
        f.write(final_data_tw)
        
        f.close()
    
    except FileNotFoundError:
        pass

print("Done!")
sleep(0.25)

26bed4a901f57091b4400d787aed3133af8b90df
<mask token>

<mask token>
print('Working...')
<mask token>
try:
    f = open(lvlp + '/info.json', 'r')
except FileNotFoundError:
    print('FileNotFoundError:  Level does not exist!')
    sleep(1)
    quit()
<mask token>
if info_list[info_list.index('environmentName') + 2] != 'NiceEnvironment':
    if input(
        'It looks like the environment of this level is not the NiceEnvironment.  Do you still want to proceed (y/n)?\t'
        ).lower() != y:
        quit()
for dif in ('Easy', 'Normal', 'Hard', 'Expert', 'ExpertPlus'):
    try:
        f = open(lvlp + '/' + dif + '.json', 'r')
        switcht2i = list()
        switcht3i = list()
        switcht12i = list()
        switcht13i = list()
        data_list = f.read().split('"')
        final_data_tw = str()
        offseti = data_list.index('_events')
        toofar = data_list.index('_notes')
        try:
            while offseti < toofar:
                offseti = data_list.index('_type', offseti, toofar) + 1
                if data_list[offseti] == ':2,':
                    switcht3i.append(offseti)
                elif data_list[offseti] == ':3,':
                    switcht2i.append(offseti)
                elif data_list[offseti] == ':12,':
                    switcht13i.append(offseti)
                elif data_list[offseti] == ':13,':
                    switcht12i.append(offseti)
        except ValueError:
            pass
        for i in switcht2i:
            data_list[i] = ':2,'
        for i in switcht3i:
            data_list[i] = ':3,'
        for i in switcht12i:
            data_list[i] = ':12,'
        for i in switcht13i:
            data_list[i] = ':13,'
        f.close()
        remove(lvlp + '/' + dif + '.json')
        f = open(lvlp + '/' + dif + '.json', 'w')
        for i in range(len(data_list)):
            final_data_tw += data_list[i]
            if i != len(data_list) - 1:
                final_data_tw += '"'
        f.write(final_data_tw)
        f.close()
    except FileNotFoundError:
        pass
print('Done!')
sleep(0.25)

<mask token>
lvlp = 'CustomSongs/' + input(
    'Please provide path to level folder (use /):\t.../CustomSongs/')
print('Working...')
f = None
try:
    f = open(lvlp + '/info.json', 'r')
except FileNotFoundError:
    print('FileNotFoundError:  Level does not exist!')
    sleep(1)
    quit()
info_list = f.read().split('"')
if info_list[info_list.index('environmentName') + 2] != 'NiceEnvironment':
    if input(
        'It looks like the environment of this level is not the NiceEnvironment.  Do you still want to proceed (y/n)?\t'
        ).lower() != y:
        quit()
for dif in ('Easy', 'Normal', 'Hard', 'Expert', 'ExpertPlus'):
    try:
        f = open(lvlp + '/' + dif + '.json', 'r')
        switcht2i = list()
        switcht3i = list()
        switcht12i = list()
        switcht13i = list()
        data_list = f.read().split('"')
        final_data_tw = str()
        offseti = data_list.index('_events')
        toofar = data_list.index('_notes')
        try:
            while offseti < toofar:
                offseti = data_list.index('_type', offseti, toofar) + 1
                if data_list[offseti] == ':2,':
                    switcht3i.append(offseti)
                elif data_list[offseti] == ':3,':
                    switcht2i.append(offseti)
                elif data_list[offseti] == ':12,':
                    switcht13i.append(offseti)
                elif data_list[offseti] == ':13,':
                    switcht12i.append(offseti)
        except ValueError:
            pass
        for i in switcht2i:
            data_list[i] = ':2,'
        for i in switcht3i:
            data_list[i] = ':3,'
        for i in switcht12i:
            data_list[i] = ':12,'
        for i in switcht13i:
            data_list[i] = ':13,'
        f.close()
        remove(lvlp + '/' + dif + '.json')
        f = open(lvlp + '/' + dif + '.json', 'w')
        for i in range(len(data_list)):
            final_data_tw += data_list[i]
            if i != len(data_list) - 1:
                final_data_tw += '"'
        f.write(final_data_tw)
        f.close()
    except FileNotFoundError:
        pass
print('Done!')
sleep(0.25)

from time import sleep
from os import remove
lvlp = 'CustomSongs/' + input(
    'Please provide path to level folder (use /):\t.../CustomSongs/')
print('Working...')
f = None
try:
    f = open(lvlp + '/info.json', 'r')
except FileNotFoundError:
    print('FileNotFoundError:  Level does not exist!')
    sleep(1)
    quit()
info_list = f.read().split('"')
if info_list[info_list.index('environmentName') + 2] != 'NiceEnvironment':
    if input(
        'It looks like the environment of this level is not the NiceEnvironment.  Do you still want to proceed (y/n)?\t'
        ).lower() != y:
        quit()
for dif in ('Easy', 'Normal', 'Hard', 'Expert', 'ExpertPlus'):
    try:
        f = open(lvlp + '/' + dif + '.json', 'r')
        switcht2i = list()
        switcht3i = list()
        switcht12i = list()
        switcht13i = list()
        data_list = f.read().split('"')
        final_data_tw = str()
        offseti = data_list.index('_events')
        toofar = data_list.index('_notes')
        try:
            while offseti < toofar:
                offseti = data_list.index('_type', offseti, toofar) + 1
                if data_list[offseti] == ':2,':
                    switcht3i.append(offseti)
                elif data_list[offseti] == ':3,':
                    switcht2i.append(offseti)
                elif data_list[offseti] == ':12,':
                    switcht13i.append(offseti)
                elif data_list[offseti] == ':13,':
                    switcht12i.append(offseti)
        except ValueError:
            pass
        for i in switcht2i:
            data_list[i] = ':2,'
        for i in switcht3i:
            data_list[i] = ':3,'
        for i in switcht12i:
            data_list[i] = ':12,'
        for i in switcht13i:
            data_list[i] = ':13,'
        f.close()
        remove(lvlp + '/' + dif + '.json')
        f = open(lvlp + '/' + dif + '.json', 'w')
        for i in range(len(data_list)):
            final_data_tw += data_list[i]
            if i != len(data_list) - 1:
                final_data_tw += '"'
        f.write(final_data_tw)
        f.close()
    except FileNotFoundError:
        pass
print('Done!')
sleep(0.25)

from time import sleep
from os import remove

lvlp = "CustomSongs/" + input("Please provide path to level folder (use /):\t.../CustomSongs/")
print("Working...")
f = None
try:
    f = open(lvlp+"/info.json","r")
except FileNotFoundError:
    print("FileNotFoundError:  Level does not exist!")
    sleep(1)
    quit()
info_list = f.read().split('"')
if info_list[info_list.index("environmentName")+2] != "NiceEnvironment":
    if input("It looks like the environment of this level is not the NiceEnvironment.  Do you still want to proceed (y/n)?\t").lower() != y:
        quit()
for dif in ("Easy","Normal","Hard","Expert","ExpertPlus"):
    try:
        f = open(lvlp+"/"+dif+".json","r")
        switcht2i = list()
        switcht3i = list()
        switcht12i = list()
        switcht13i = list()
        data_list = f.read().split('"')
        final_data_tw = str()
        offseti = data_list.index("_events")
        toofar = data_list.index("_notes")
        
        try:
            while offseti < toofar:
                offseti = data_list.index("_type",offseti,toofar) + 1
                
                if data_list[offseti] == ":2,":
                    switcht3i.append(offseti)
                elif data_list[offseti] == ":3,":
                    switcht2i.append(offseti)
                elif data_list[offseti] == ":12,":
                    switcht13i.append(offseti)
                elif data_list[offseti] == ":13,":
                    switcht12i.append(offseti)
        
        except ValueError:
            pass
        
        for i in switcht2i:
            data_list[i] = ":2,"
        for i in switcht3i:
            data_list[i] = ":3,"
        for i in switcht12i:
            data_list[i] = ":12,"
        for i in switcht13i:
            data_list[i] = ":13,"
        
        f.close()
        remove(lvlp+"/"+dif+".json")
        f = open(lvlp+"/"+dif+".json","w")
        for i in range(len(data_list)):
            final_data_tw += data_list[i]
            if i != len(data_list) - 1:
                final_data_tw += '"'
        f.write(final_data_tw)
        
        f.close()
    
    except FileNotFoundError:
        pass

print("Done!")
sleep(0.25)
