changed driver=webdriver.Firefox() from default to within code.
When default only called at function definition further call wont work.