[BEAM-1671] beampy: provide python 2.x support