Fix device ids not being properly assigned to python kernels
Fix device ids not being properly assigned to python kernels

scanner-research/scanner,scanner-research/scanner,scanner-research/scanner,scanner-research/scanner