revise uri in python and ruby
revise uri, fix issue #2