Update requirements.

Remove redundant or unused requirements.
Replace pypdf with pypdf2.