patterns.py: PEP8 compliance

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>