PEP 8 fixes

PEP 8 fixes for samples/* and scripts/mypy.