def some_function(input):
 input = np.asarray(input)
 output = fortran_module.some_function(input.ravel())
 return output.reshape(input.shape)

def some_function ( input ) : input = np . asarray ( input ) output = fortran_module . some_function ( input . ravel ( ) ) return output . reshape ( input . shape )
call a fortran routine .