implemented conversion of C layout to Python layout