[SPARK-1087] Move python traceback utilities into new traceback_utils.py file.

Also made minor cleanups to JavaStackTrace.
Looks like I also need to put JavaStackTrace here instead of SparkContext.