remove trailing ws from test and example dir
remove deprecated dict syntax from src