added try block around csv output
Merge branch 'master' of https://github.com/benjaminestes/Pyscape