pwkit/tabfile.py: import from udb

Few changes needed.