new.pim.env function

Constructor for a pim.environment