added six for python3 support