Replaced relative imports with absolute.
Porting to py3k: use 'six'; import theano now works.
Instruct travis to install six.
Define RETVAL as empty under python 2.x to preserve compatibility.
NoseTester must be initialized at the package level.
More python 3.x fixes.
More python 3.x fixes: keep __hash__ and __eq/neq__ redefinitions together.
More python 3.x fixes:

  * Suppress 2to3's "next" fixer that conflicts with having non-iterator attributes called "next."
     Rely on six.next instead.

   * added python 3 version of hash_from_code.
More python 3.x fixes:

  * Use PyCapsule instead of PyCObject.

  * Use Python 3 module initialization.

  * Prepend 'm' to code hash to avoid module names that start with a digit.
More python 3.x fixes:

  * allow numpy array as an argument to hash_from_code.
  * use truediv instead of div under 3.x.
  * **kwds checks that keys are strings in 3.x
  * fixed a typo bug in tensor/opt.py
  * fixed an incorrect numpy version check in test_basic
Issue #783: python3 compatible.
Restored a change lost during merge.
Recover from bad merge.
Issue #783: python3 compatible - fixed error message checking.
Issue #783: python3 compatible - fixed batched_dot

 - disabled fix_filter becaus theano uses "filter" as a method name;
 - fixed another instance of checking the error message;
 - fixed another instance affected by numpy isinstance(x, int) bug.
Issue #783: python3 compatible - fixed another use of reload.
Issue #783: python3 compatible - fixed another instance affected by numpy's isinstance(x, int) bug.
Issue #783: python3 compatible - sort types by name since they are unorderable in 3.x.
Issue #783: python3 compatible - use explicit floor division (// instead of /).
Issue #783: python3 compatible - use explicit inplace floor division (//= instead of /=).