import pickle


def read_object(filename):
    """Convenience function for retrieving object from file using pickle.

    Arguments:
        filename {str} -- path to file

    Returns:
        object -- object in file (uses pickle)
    """

    with open(filename, 'rb') as file:
        obj = pickle.load(file)
        return obj