minor change for 0e58e40e4038952301bc20a4923022cb528d558b

- ignore channels that are not present in the stream to check
obspy-scan: correctly detect last gap in trace
Docstring and PEP8 fixes.
Moved validate() function from event to quakeml.

obspy.core.event.validate() is now obspy.core.quakeml.validate(). It
only validates QuakeML files and thus belongs there.
Added option to validate QuakeML files upon writing.

Passing `validate=True` to the write function will automatically test
the created QuakeML against the schema. This is not a sure way to tell
if the created QuakeML file is valid but useful nonetheless. Also
activated it in the tests.
Adding test for creating simple event.

Fixing some bugs in the process. Also changed the ways strings are
compared in the QuakeML test suite. Now difflib is used so it is useful
even for very large strings.
AssertionError in case of failing validation.

The writeQuakeML(..., validate=True) function now raises an
AssertionError in case the validation fails.
Updated all docstrings to QuakeML 1.2.

There are probably still some smaller issues left but all in all it
should now be up-to-date now. Fixes #447.
unittest backwards compatibility

aka be nice to python 2.6 ;)
need to close file if Exception gets raised
Using proper malloc() while writing MSEED data.

The datasamples pointer in writeMSEED() is now filled with a proper
malloc call and not the old and hackish resizing approach. Now also runs
on Python 2.7.4. Fixes #551.

Also changed the MSTraceGroup to a simple MSTrace as it is only used one
trace at a time.

Requires recompilation of the shared obspy.mseed library.
Reverting whitespace removal within libmseed
Better error msg for test_writeAndReadDiff...()

Eases debugging.
Fixing confusion of numpy.string_ dtypes.

test_writeAndReadDifferentEncodings() now works across different NumPy
versions. Fixes #552.
PEP8 for obspy.mseed
Merge branch 'master' into bleeding

Conflicts:
	obspy/core/event.py