Merge pull request #519 from mrjefftang/master

Fix error checking to avoid calling NtQueryObject on bad objects
update HISTORY
test Process.cpu_affinity() against os.sched_getaffinity() if available