Fortran Reshape Function In Python Programming