Made pyshark compatible with spark 0.9.0

Pyspark in 0.9.0 decomposes functionality in a way that requires
large amounts of code to be repeated in the pyshark context. Future
version of pyspark offer methods that allow us to duplicated no
code.