CheckIP in Python/Bottle