Python Network Calculator