ENH: minor fixes making life easier.

@Eric89GXL these are some minor adjustments allowing for scripts like these:
https://gist.github.com/dengemann/9bf867bc8893058c8dc7