rewrote all python scripts