Fix python code to get drive id