Use six for five.py

Six provides simple utilities for wrapping over differences between Python 2 and Python 3. So i think it can save some code