convert a python dictionary to pandas dataframe