fixed STDIN mode for cidr.py