[python3] Update version checking script