prepare condformats_serialization_generate.py to be used by scram

+1
for the BOOSTIO branch, please merge.
This should allow Shahzad to use the script in scram