Venezuela has begun releasing hundreds of people detained for political reasons under a new amnesty law.