how to get platform details in python