change datetime import to fix errors caused by relative reference to datetime class