cddb: Change constructs for compatibility with Python 3.
cddb: Use explicit integer division.