I am still very much at the start of learning about programming. 
I played around with python lately and wanted to do a little project about GUI automation with pyautogui. The idea is to make a very basic and simple Instagram automation program that double clicks waits a random amount of seconds (chosen so that the maximum like "per hour rate" is not exceeded) and then scrolls on and repeats infinitely. 
Here is what I got so far:

```
#instaclicker-bot
import pyautogui 
import random
while True
    pyautogui.moveTo(500,500,duration=0,25) #move cursor over image in webbrowser
    pyautogui.doubleClick(500,500) #doubleclick to "like"
    waittime = random.radInt(20,40) #wait between 20 and 40 seconds to emulate random behaviour
    print "waiting for %d seconds" % waittime #print chosen wait time
    time.sleep(waittime) #wait for chosen wait time
    pyautogui.scroll(500) #scroll to position mouse over next picture below

```

I am getting syntax errors and "Indent block detected" errors all the time. Also, is the variable usage correct?

I am well aware that bots and automation of any kind are against Instagram's terms of use. I am not intending to use this in any bad way. This is just intended to be a fun project for me. 

Also this is my first post/asking for help on stack exchange I hope I didn't make any stupid mistakes, and apologize in advance if I did something wrong.

Thanks in advance for any help!