CentOS  makimg bp.py work under python older than 2.7

Change-Id: Ie1f4e7a9e2ff53b4c1f0521e845506e417d52396