import pickle
import base64


def dumps( data ):
    """Serializes the incoming data as a pickled base64 string"""
    byteArray = pickle.dumps( data )
    string = base64.b64encode( byteArray )
    return string