python3 portability fixes
add matplotlib to the build environment