import pickle


def save_pickle(obj, filename):
    """
    Serializes a given object
    Parameters:
    -----------
        obj : object
        filename : string
    """
    return pickle.dump(obj, open(filename, 'wb'))