Add support for python3.
Add get_label, get_error, etc.
Add tests.
Fixed missing value error.
Add support for py2 and py3.
Merge branch 'py3'