Improvements to OpenStack inventory script