Add ability to run python or shell scripts.

The main file and command to run (Rscript, python, sh) is all inferred based on file extension.