update gen.py, add function compute_output()
Merge branch 'master' of https://github.com/joereynolds1/genpy