Added impl of ignore_patterns for old Pythons