import base64
import pickle


def ObjectToBase64EncodedString(Object):
    """Encode Python object into base64 encoded string. The object is
    pickled before encoding.
    
    Arguments:
        object: Python object.

    Returns:
        str : Base64 encode object string or None.

    """

    return None if Object is None else base64.b64encode(pickle.dumps(Object)).decode()