YP.py: Use Python 3 compatible "in" syntax instead of has_key.
Authored by: jefft0 2019-08-10
Parent: [r938]
Child: [r940]