pep8 and a few other things

Add ExampleProcessor and a rpc_method decorator
add build to gitignore
improve print_log()
consolidate utils