art_utils/program_helper: removed some non-pythonic checks and small code duplication
art_utils/program_helper: removed some non-pythonic checks and small code duplication

ZdenekM/ar-table-itable,robofit/ar-table-itable,robofit/ar-table-itable,ZdenekM/artable,Kapim/artable,robofit/artable,robofit/artable,robofit/artable,Kapim/artable,ZdenekM/ar-table-itable,Kapim/ar-table-itable,Kapim/ar-table-itable,ZdenekM/ar-table-itable,ZdenekM/artable,ZdenekM/artable,Kapim/artable