ENH: General utility for creating input dicts