I saw often in similar situations is that the developer takes a real CPAN module, renames it (eg. turn YAML in to MyNameSpace::YAML) and that's it.
I don't really like this solution and I am glad so far I did not have to do this, but this might help.
This might also give you the opportunity - or the need - to actually read the source code of the module.