Using six for python 2.x 3.x compatibility