Python Classes and Their Use in Keras