python errors handling on ec2procci