added more warnings, skipping when activating more than once or only a single pixel
Automatic style corrections courtesy of autopep8