refactoring EPG_NIOTV.py