Added python example
added a Java example