make all examples compatible with python3

all changes in only one commit, replace #48 to #55