Python EPG generator