fork from http://tfinley.net/software/pyglpk/