I want to enable the snapping options for the the existing layers using python programming. How can I do this?