ENH : first pass a getting import hooks to work

Does some magic to hide the fact that we are importing from a yaml file.