scala vs python future