Improve Python 3 support in validation.py
Bump version to 0.5