How did I miss that Python 3.3 provides direct access to posix_fadvise?

No more need to import ctypes and libc the hard way, though usage is identical.