Python Return Key Value Pair In Java