Fix import errors, shadowing, and openapi serialization issues 0803aef verified teoat commited on Jan 11