Generate clock on Timer7 (P8_8)pin of beaglebone.

Hello.
I am first time work on beaglebone. I want to generate 3Khz clock on the timer7 (P8_8)pin of beaglebone.
my python code is.

import Adafruit_BBIO.GPIO as GPIO
import time
outpin=“P8_8”
GPIO.setup(outpin,GPIO.OUT)
GPIO.setclock(outpin,3000)
while True:
GPIO.output(outpin,GPIO.HIGH)
time.sleep(2)
GPIO.output(outpin,GPIO.LOW)
time.sleep(2)