Few modifications for python 2 & 3 compatibility.

Pep8 say we should use absolute path when it is possible so if you can change it is could be great (or give a good reason to use relative ones.)