Refactor internal.python classes into Python.java
Use compile-time concatenation for doc examples
Update copyright notices
Support streams as input for doc and version args