Reorganize pupillator scripts