Port of MetaInspector in Python