import pickle


def read_pickle(filename):
    """Read object from pickle format.

    Parameters
    ----------
    filename : str
        Input file.

    Returns
    -------
    obj : object
        Python object.
    """
    with open(filename, "rb") as f:
        return pickle.load(f)