Changing function call for compatibility with Ubuntu 14.04

I had to change this to make it run on my Ubuntu 14.04 Virtual Machine. I haven't checked if it provides the exact same functionality as psutil.pids(), which is not present on my system.