small python script to prevent the sending of multiple mail