Edited pickle dump to properly generate plugin files