Update ifconfig.py

get_netmask has a rounding error when netmask == 27 or 30 (will return 28 or 31, respectively)