Bash Function Example In Python