Fix style and assorted issues in samples/resources.py

This also supressess unnecessary logging statements

Signed-off-by: Don Naegely <naegelyd@gmail.com>