Rewrite the basis and hecke matrix related code to incorporate the sage patches. Only a slight speed up, but clearer code. The new functions are called old_name_new for the moment so you can still use the old functions as before.