AMBARI-8910. Fix agent unittests to run with python2.6 (dlysnichenko)