fixed build and python scripts