Python range percentage