Fix CRLF problem with running python on windows /and/or cygwin when creating java source files. Also fix broken generated license header.