BF: adding locals() for warning string interpolation