Create functions to check passwords in MED files and return python Exception rather than errors/warnings generated by C functions