import pickle


def load_system(filename):
    """Load object containing solution.
    Input: filename, eg 'system.p'
    Output: system object
    """

    system = pickle.load(open(filename, 'rb'))
    return system