Apply 2to3.
Create dbm file by default. Always recreate in tests.
Anydbm works with dbm module on py3k now.
Close dbm db correctly.
Fix paginator.
Fix tests.