Replace pickle with ast.literal_eval()

It is more portable (across Python 2/3) and it isn't any slower
(according to a cursory "time" benchmark).