Examples: Make it possible to run the example scripts standalone

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Examples: PEP8

Signed-off-by: Jerome Flesch <jflesch@gmail.com>