I have been working on porting the functionality of the OpenType.tools website to a Python module for use within FontLab Studio. It is ready for beta testing, and I would love to get some feedback from people. If you are interested, please visit http://opentype.tools/macros
I developed and tested this package under FontLab Studio 5.1.2 for Windows. I believe it should work with any 5.x version, but I have not tested it with other versions or platforms.
Please use with care: this is beta!
Make sure you only use it on copies of your fonts until you're satisfied it works.