Fix problems with division under Python 3.
Merge pull request #23 from rybaktomasz/python3

Fix problems with division under Python 3.