code improvements

find()-method:
- for-loop corrected

_equal()-method
- now uses python's 'with'-statement to simplify the method