string.strip removed in python3.
Python3 compatible metaclass declaration.
Use six for strings / unicodes / bytes
Use range instead of xrange (small number)