Port of DBFPY to Python 3