Add python2/3 variants to interpreter mode alist

For cases that specify python2 or python3 specifically in shebang but
don't have a .py extension.

Before I was using "-*- mode: python -*-" in these files.
Replace mapcar with more appropriate mapc