BUGFIX - it turns out that you cant just use sudo keystone-manage db_sync $KEYSTONE_DB_NAME in keystone to init the db.
Moved the glance hack to within the shared base.sh script as I think it is there that python-dev may be useful/playing a role.