Fix kwargs formatting in function definition