accordion: fix python 3