add script for java and python

add script for java and python