Fix braces in Python literals