first shot at python 3 support
do not overwrite DB if it can't be read
python 2/3 compatible iterators (ugly as sh*t)
reset filter properly
id => idf, numbers in format strings
saner iterators