added base.py
fixed line lengths in patch_viewer.py