configuring penv for matplotlib