Fix import issue, add git ignore, fix permissions and shebangs.

None of this stuff is very important. The only functional difference is the import issue which lets you put libnum as a module inside another python module.