separating java and python