def SetWriterMolProps(Writer, Mol):
    """Setup molecule properties for a writer to output.
    
    Arguments:
        Writer (object): RDKit writer object.
        Mol (object): RDKit molecule object.

    Returns:
        object : Writer object.

    """
    PropNames = list(Mol.GetPropNames())
    if len(PropNames):
        Writer.SetProps(PropNames)
        
    return Writer