Python Convert Literal To String