Added In_array function for testing array membership
Added Pyn function for yes/no prompts
Added Check_if_run_fg_cmdline

Checks if current script is run from command line.