@staticmethod
def esc_(string):
    """ fix strings for use as names in classes """
    if string == 'id':
        return 'id_'
    elif string == 'def':
        return 'def_'
    return string.replace('-', '_').replace(':', '')
