quote is rewritten in python