Change __main__ sync behavior