Combine the flour, salt, chili powder, thyme, allspice, & black pepper. Dredge each piece of chicken in the flour mixture, shaking off the excess. In the same pan as the onions, heat the oil over medium high heat. Add each piece of chicken & fry for a few minutes until golden brown; flip & cook for a few more minutes. Transfer to a plate (it will not be fully cooked at this point, just browned – it will finish cooking in the oven).