Rewrite is in progress
Libre Office was only forked off of Open Office a little over a year ago. One of the projects is to rewrite it so it doesn't depend on Java so much. Java was forced on OOo by Sun, and that continued with Oracle. check the LO website to see how it's going. I think Python would make a good macro language. Long term, it will probably be more JS, as that seems to be where HTML is taking everybody.