At the last Management Developers Conference (http://www.mandevcon.com), I presented my work on scripting openwsman server plugins. This is a way to write plugins in a scripting language, like Python, Perl or Ruby.
The attached presentation shows how the problem was approached and describes the implementation. Its in an alpha state currently and needs some more work to become fully functional. This will also require some changes in the openwsman plugin API to fully support plugins.
The code is part of the openwsman svn repository, look below src/plugins/swig.
Enjoy !