Add Python 3.x support

Signed-off-by: Jerome Flesch <jflesch@gmail.com>