use six for metaclasses
use int as long if python 3 and above
Merge pull request #8 from vitaly4uk/master

Now it successfuly works in python 3.3