Vim works fine for all other languages, but word detection seems wonky in python. For example, in the following snippet, with the cursor on the 'h' in shutil, I would expect prssing the w key to advance me to the period, instead I get moved to the "'" in front of export.
shutil.copytree(os.path.join('export', 'app'), os.path.join('export', 'pacakge'))
Any idea what could cause this? How can I detect the cause? How can I fix it?