Removed duplicate BaseModel dependencies in class inheritances. Also, sorted imports by `isort`.
Arbitrary transformation chains that can be used to add dictionary extractions from llms/other chains