Alphanumeric Shifting Made Easy With Python

During my first CTF(Capture the Flag) competition I noticed that some challenges required a character shifting in order to discover the real value of a string. I spent a few minutes on those challenges trying to figure out a pattern that could be applied to “unmask” the given content.
Challenge 1
After gathering information about the given IP address, a file was found with the following content: