MAINT: python3 compat.
Merge pull request #939 from sciunto/py3

Python 3 compatibility for contribs build script