rename var to cope to avoid collision with import
Merge pull request #2175 from andymckay/fixup

rename var to cope to avoid collision with import