arguments in collection_names

fixed arguments in collection_names
fixed some python 3 compatibility