Recurrent Neural Network Python Code