Adding debug in local.py