python len almost works