Fix BatWorld::check() in python templates

(fix #309)