ENH: generalizing comparison script