do not exec file if none of the kw is/are present

Also, in case None is the value for kw, make it a tuple