useranalitics: import matplotlib properly, not conditionally