Got rid of reshaping in ex2.py
Fixed string formatting in ex2.