Mod: Open header files with encoding if Python version is greater than 2...

Fix bug #4003 [http://www.code.opencv.org/issues/4003]
You can use
```python
f = io.open(hname, "rt", encoding='utf-8')
```
to avoid version check. It should work in both versions.