Python code for accent recognition with a neural network