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 checket if it provides the exat same functunality as psutil.pids(), which is not present on my system.