Updating slicer to work with python 3

After fixing Python’s Modules_io_iomodule.c, Windows build succeeded in both release and debug mode.

Thanks for looking into this. I will update GitHub - python-cmake-buildsystem/python-cmake-buildsystem: A cmake buildsystem for compiling Python to integrate this.

In debug mode, Slicer hangs at startup. See a fix here: https://github.com/lassoan/Slicer/tree/python-startup-hang-in-debug-mode. @jcfr could you please review and merge?

Thanks for the patch. I will review and integrate shortly.