converted shebang to a conditional

Script is incompatible with python 3. This should solve the issue for people with both python 2 and 3. I'll start looking at whether it'd be possible to make the script compatible with both versions.