PID fix for OS X
Merge pull request #6 from mchampanis/osx_pid_fix

PID fix for OS X. Fixes #3 cc @mchampanis and @phyllisstein