added a pretty table printer for factors and functions using prettytable
moved python shape walker to a single file