<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def resolve(object):
 """Look up the name of a source using a resolver"""



    import re
    sesame_cmd = 'curl -s http://cdsweb.u-strasbg.fr/viz-bin/nph-sesame/-oI?'+string.replace(object,' ','')
    f = os.popen(sesame_cmd)
    lines = f.readlines()
    f.close()
    for line in lines:        
        if re.search('%J ', line):
            result2 = line.split()
            ra_deg = float(result2[1])
            dec_deg = float(result2[2])
            return (ra_deg, dec_deg)
        
    return (0,0)