What are the primary differences between Python and Bash scripting, and how do you decide which one to use for a security task?