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

Fix bug #4003 [http://www.code.opencv.org/issues/4003]
I think `io.open` looks better.
You don't need to create new PR, just amend current commit (`git commit --amend`) and then force push to you current branch (`git push -f`).