'Returns a datatype object based on an extension'

def get_datatype_by_extension(self, ext):

    try:
        builder = self.datatypes_by_extension[ext]
    except KeyError:
        builder = None
    return builder
