make path_to_url python3 friendly