Removed most redundant imports

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