How can I change Fn keys usage based on application?
Fluor is a relative newcomer to this space that does exactly what you want:


  Fluor is a tool that allows you to automatically change the behaviour of the keyboard's fn keys depending on the active application.


It is open source, works on macOs Sierra and is actively developed (as of March 2017).