Fixes to Python3.x

**Changes**

All changes I've done were backported from Python3 to Python2 (at least until Python2.7).

- [Capturing the currently raised exception (it doesn't work in Python 2.5 and earlier)](http://docs.pythonsprints.com/python3_porting/py-porting.html)
- [map function returns an iterator](http://www.diveintopython3.net/porting-code-to-python-3-with-2to3.html#map)
- [Tuple parameters removed](http://legacy.python.org/dev/peps/pep-3113/#transition-plan)
- ```import exceptions``` removed as now it's a built-in module
- ```from itertools import izip``` removed, now it [uses just zip](http://www.diveintopython3.net/porting-code-to-python-3-with-2to3.html#itertools)

**TODO**

- I didn't change the files containing weave library. In fact, I really don't know if this library is already supported in latest scipy versions. I couldn't find any recent references to that. Just found "old" news saying that it is not supported yet such as [this](http://mail.scipy.org/pipermail/scipy-dev/2013-September/019238.html) and [this](http://docs.scipy.org/doc/scipy/reference/release.0.9.0.html). Maybe it's time to consider using Cython instead.
- RL-Glue is also unchanged because its current Python codec have no support for Py3 yet. However, 
I changed Python codec source for RL-Glue to run in Py2 and Py3 (in fact, I just changed minor things such as print function and exception statements). By the way, I've uploaded on [my Github]()
One thing to point out is that no one is maintaining RL-Glue code anymore.

I didn't do any tests and I just tried to run the examples in the Pybrain docs and everything worked fine.