A Python Network Interface Library (PNIL)