Fix funcd to at least import without errors. (#16288)
Fix funcd to at least import without errors. (#16288)

This plugin was using very old api, so was
updated to newer api.

Also misc style/pep8 cleanups.
thaim/ansible,thaim/ansible