add java dep ,and modify .py to allow java invoking python