fixed matplotlib not working without x-windows