Correct order of keyword argument parsing