A python-based neural network