Add reencode function in Python binding
Merge pull request #1648 from medicalwei/squashed

Add reencode function in Python binding