2) Fixed import statements - don't use `from x import *`, but import only what is needed. 2) Reformatted the code.