Escape quotes in Python