[core][py] capitalization for errors