Add gitignore
[Py3] Make setup.py Python3 compatible.
[TST] Fix unittests for result3
[Py3] Fix raise/except
[Py3] Fix 0L/1L
[Py3] Replace removed DL_EXPORT macro