Read MBR and GPT partitions in python directly.