allow specifying cluter spark version in ec2 script; some PEP changes