first version of python script, prints 5 line of data
added savefig functionality to both lib and script