matplotlib integration in flask