python code for anti-spam