Yep! There is one and it is very simple. There are no guarantees regarding this software! Use it at your own risk!
Q. What can clientip.pydo for me?
A. Pretty much nothing! It is a sample script that prints ut an IP address of the client computer. Just copy the code if you wish and use for your own cgi scripts.
On to the source file: clientip.py