Escape invalid Python identifiers.