Why are you removing brackets in the MFBool class' VRML() and JSON() methods? following the XML pattern is just wrong, AFAIAC. See code snipped from x3d.py
def VRML(self):
""" Provide VRML value for this field type. """
return str(self.__value).upper().replace(',', '').replace('[', '').replace(']', '') def JSON(self):
""" Provide JSON value for this field type. """
return str(self.__value).lower().replace(',', '').replace('[', '').replace(']', '')