[SPARK-2627] more misc PEP 8 fixes