Fixing range of python scripts.