Python Str Object Has No Attribute Append