Use multiprcessing module utility to get number of cores