Fixed scripts in setup.py and added encoding and the shebang.