To create simple web server in python run below command in shell
python -m SimpleHTTPServer 5000
this will start serving pages at the address http://localhost:5000 and will show files from the location from where command is ran.
After reboot press ESC then F11 to enter system recovery mode, then select Troubleshooting then "Advanced Options" then "Command Prompt".
After command prompt appears type following
bcdedit /set {default} safeboot minimal and press Enter.
or
bcdedit /set {default} safeboot network and press Enter.
or
bcdedit /set {default} safebootalternateshell yes and press Enter.
Close command prompt
On "Choose an option" screen press Continue
To Unset the safe mode booting, follow above steps till command prompt and then enter command
bcdedit /deletevalue {default} safeboot and press Enter.