Revert "Python class"

This reverts commit 557c83bde4cb0f98bf160c9793f1d08f515af5c3.