row major order in Python