tweak python scripts