fixing py3/2 compatibility, use `six`