[4.0] remove Python 2 code parts in generate_family_file.py
[4.0] remove Python 2 code parts in generate_family_file.py

Change-Id: I3fd36fee5372c1ba4419589d0d890e46dbf63b86

wikimedia/pywikibot-core,wikimedia/pywikibot-core