system_ring = os.path.basename(proxy.get_value('general','ringin g.alert.tone')) haven't tried this but I'm guessing that is a rogue space embedded in the above line?