Fix template for creating from python bindings