Creating Dictionary From List Python Functions