Fixed a bug where Python keywords were accepted as names

Fixed a bug where Java 1.7 new URLClassLoader handling would break
certain tests (loader closed too early)