add Java sample code
add Python sample code