Remove unused imports and update requirements