Removed global variable in examples/layout-test.py
Removed wrong comments.
Several bug fixes. (After last refactoring.)
Added python-embed.py example.