Update mlp.py
Merge pull request #792 from laurent-dinh/patch-1

Update mlp.py