fix some packaging issue that found by PyDev code analysys