A python script to transpose abc files