support Python 3
fix small typo in parse_version()
use only bytestrings for parse()