Bash If String Ends With Python