Core classes for Python analysis