scala vs python speed