thread.py: Remove unused imports
ankisyncd.sh: Use '/usr/bin/env bash' in shebang for better portability
ankisyncd.sh: Check python version and look for python2 if it's not the default
python