introduce six lib, used python-modernize + manual fix