I would use olive oil for that, but try warm water first. Electrical tape doesn't hold up to water, so once it's wet it should come off with ease, if for some odd reason it doesn't, then do olive oil.
To secure your cord, what I would do is go to walmart, get the velcro tape, or whatever you call it that comes in a little roll(it's usually used to attach thermometers and other stuff to glass). Cut a piece, and wrap it around the cord, and put the opposite side against the tank. Although it will still come off if your snake messes with it, but atleast it won't hurt him.