Python String Object Has No Attribute Append In Dictionary