Add time.sleep to create server while-true loop