getting catalog in python