Learning about and implementing neural networks in Python