Make hexadecimal exercise compatible with Python3

Apart from the additional `functools.reduce` import for Python3, this commit removes the print statements from the example implementation as they weren't necessary for the solution.