Fixed python code dependence in build time.