fold just classes and functions for python