A neural network framework for Python