Use python script to generate version.