make update_anc_database.py work with Python 2