fixed a change that broke py27 usage
add allow_cat_creation flag