Added bad file name protection
Got pyplot working