Implementation of Neural Networks in python (from scratch)