Remove deprecated fn and get_fn.

These functions were deprecated in 2012 (before the project
was open-sourced?)

Also remove extraneous `import warnings`
Merge pull request #486 from jcrobak/remove-deprecated-fn-get-fn

Remove deprecated fn and get_fn.