Here's a more up-to-date version of your code for Python3 (tested on 3.5), Theano (0.9.0) and Lasagne (0.2.dev1).
I would NOT overwrite your existing version however, since this version is incompatible with Python2. It's more work to make the code compatible with both versions of python, so it might be best simply to let the user decide which they want.
Yo.
Here's a more up-to-date version of your code for Python3 (tested on 3.5), Theano (0.9.0) and Lasagne (0.2.dev1).
I would NOT overwrite your existing version however, since this version is incompatible with Python2. It's more work to make the code compatible with both versions of python, so it might be best simply to let the user decide which they want.