I am having trouble with converting a dictionary to a string in python. I am trying to extract the information from one of my variables but cannot seem to remove the square brackets surrounding the information

```
for line in str(object):
    if line.startswith ('['):
        new_object = object.replace('[', '')

```

Is there a way to remove the square brackets or do I have to find another way of taking the information out of the dictionary?
------------------------------------------------------------------------------------------------------------------------------

Edit:

in more detail what i am trying to do here is the following 

```
import requests
city = 'dublin'
country = 'ireland'

info = requests.get('http://api.openweathermap.org/data/2.5/weather?q='+city +','+ country +'&mode=json')

weather = info.json()['weather']

fh = open('/home/Ricky92d3/city.txt', 'w')
fh.write(str(weather))
fh.close()
fl = open('/home/Ricky92d3/city.txt')
Object = fl.read()
fl.close()

for line in str(Object):
    if line.startswith ('['):
        new_Object = Object.replace('[', '')
    if line.startswith ('{'):
        new_Object = Object.replace('{u', '')

print new_Object

```

i hope this makes what i am trying to do a little more clear