Minor fixes to rnn.py like I did for rntn.py