import pickle


def readPickle(filename):
    """
    Receives a filename to read from, opens the file, loads the pickled data 
    inside to memory and returns an object with that data.
    """

    pkl_file = open(filename, 'rb')
    data = pickle.load(pkl_file)
    pkl_file.close()
    return data