Extensions: Split out TransformState's Python extensions.