Fixes in conv3d2d for python 2.4
Merge pull request #1606 from lamblin/fix_py2.4

Fixes in conv3d2d for python 2.4