Update py_styleView.py

Removed repeated code, import PrettyTable