[core][py] quick hack to avoid stupidity of .istitle()