Bash Script Match Regex Python Tester