Add utility function to convert arbitrary names to Python identifiers.