make compatible with Python 3
use integer division in setitem / getitem
Merge pull request #11 from Cybjit/python3

make compatible with Python 3