Fix version check on python publisher