Change local.py generation