move import to local scope since when the new api is being invoked from jenkins_scripts genmsg is not on the Python path