I have an "alarm email" function inside a python module. I want to be able to call this function from a bash script. I know you can call a module using 'python ' in the script, but I'm not if you can or how you would call a specific function within the module.
python -c'import themodule; themodule.thefunction("boo!")'
You can use the
python -c "import random; print random.uniform(0, 1)"
Modify as you need.