Move Python code into its own `sparkperf` module.

This will allow us to modularize this code.