This patch fixes a bug I hit when remotely-debugging a python program with gud through tramp. If I tried to set a breakpoint from the source buffer, the python debugger would be given the full path to the file, tramp fields and all. This made it impossible to set breakpoints in this manner. Attached is a patch that strips out the remote pieces of the path when communicating with the backend debugger.