Different implementations of machine learning and neural networks in python