Renamed ierror to error
Added Python mdcore alias for backwards compatibility.