Is python compatible with Java?

Yes, particularly if you use Jython.

Another example is OpenOffice, it is written in Java but uses Python as an internal scripting language.

The nice thing about OpenOffice is that Sun makes it available for free (if you like it make a donation) and it competes very well with Microsoft Office. I have had no problems using my old MS Office files.