I currently am creating a python api for an apache spark framework and would like to use the underlying java or scala code I already have written to drive most of my python. The issue is that I need python lambda expressions that can be converted to java or scala so that they can be re-used within my existing framework. Is there any way to do this using py4j?