Bash Script Return Value From Function Python Examples