Python network config generator and checker