Update local_tester.py

Source file is now recompiled only when it is necessary.