python scripts for reducing galfacts data