Initial port of base packages for 2.7/3.x