[python] fix depends in some modules.