fixed key error for python dictionary