Re-run previously entered command as root user.
python
sudo !!
!!
is automatically substituted to the content of the previous command. Turning the above line intosudo <your command here>
.