def writeElementCode(self, elem, localvars):
    if (type(elem).__name__ == 'Constant'):
        return self.writeConstantCode(elem, localvars)
    else:
        return None
def writeElementCode(self, elem, localvars):
    if (type(elem).__name__ == 'Constant'):
        return self.writeConstantCode(elem, localvars)
    else:
        return None