Added __contains__ method to hdulist class so that something like 'a' in hdulist works correctly (when a is the name of an hdu in hdulist)
hdulist.__contains__ method just uses the index_of method to check if the key exists.