pecan: cleanup, use global vars and staticmethod

Change-Id: If5a7c1b4b71380053ed650ddc8e9928422869807
Merge "pecan: cleanup, use global vars and staticmethod"