convert c structure to python style.