fix typo and change get_runnable_priority to class method