how about f2c to turn dft.f into dft.c you just need f2c.h.
I just edited the .f file, moved the integer declaration to above the "data" statement and ran f2c.
gcc -o dft.so --shared -fPIC dft.c created the .so file.
shroedinger.py still seems to work.
Cool. Ondrej was just about to convert it to C manually. We will remove completely all fortran deps ASAP.