I'm having a problem maintaining the latest package versions via puppet (which runs "pip freeze"). This stems from not allowing underscores in the safe_name function. "pip freeze" returns "package-name", when in fact it should return "package_name". "pip freeze" retrieves the packages from pkg_resources.working_set.
The search/replace is performed by safe_names, which can be found here
One of the packages in question is riak_pb (https://pypi.python.org/pypi/riak_pb)
"Underscores can be used in the module name if it improves readability."