Cleaning up python wrapper generation.

* Cleaning up code style in python/wrapgen
* Rebuilding python type generator.
* Fixing python glue code.
* Adding some basic optimization features.
* Adding an info message to execute action.