fix py4jexception caused by static method accessed through self