make wat compatible with py3k
add rules for .qif files