removing a os.path in url