[python] support importing nested classes