def write_list_to_pickle(object_to_pickle, pickle_name):
    try:
        with open(pickle_name, 'wb') as f:
            pickle.dump(object_to_pickle, f)
        return 0
    except:
        print('error writing pickle')

def load_from_pickle():
    try:
        with open('resources/corrected_tickers.pickle','rb') as f:
            pickle_list = pickle.load(f)
        #for item in pickle_list:
        #    print(item)
        return pickle_list
    except:
        print('error loading pickle')
