I need a small billing report for the usage of the VMs inside openstack after it is stopped, so far I already find the way to get flavor information (vCPU, disk, memory) from instance name. 

And I want to know the VM's startup time to calculate now.

Are there any good ways to fetch it from openstack python API ?

It will be nice if you can paste the code as well.