Learning to Edit Visual Programs with Self-Supervision