Removed most redundant imports

This PR removes most redundant imports and the more obvious redundant variables assigned