minor python code changes. Made getting a destination more intelligent