Python3 compatible syntax (noted by Travis CI).

Added missing decode() calls as well to get paths as unicode.