missing method_name declaration in locals()