import gfort2py as gf SHARED_LIB_NAME = "./libtest1.so" MOD_FILE_NAME="test1.mod" x = gf.fFort(SHARED_LIB_NAME, MOD_FILE_NAME) y = x.hello(6)