suggested changes that could apply to the other 3 files too

Hey, thanks for the pull request you opened on the samples project. I have made a few changes that could apply to the other 3 files in your pull request.

Another thing is that the pep8 tool shows you have some pep8 issues.