Fixed and optimized build_master_finders_table.py