Playing IPOs or Actions with Python?

Hey! I’m trying to make a fairly simple 3D Game for my ICS3M summative, but…I’m not sure how to play actions repeatedly in BGE Python. I’m really trying to learn PYTHON, and not just pseudocode.

I’m trying to get some cubes with pre-animated IPOs to fly around and the player has to avoid them.

This is the code I have so far:

import GameLogic #Not sure if I need this or not…
cont = GameLogic.getCurrentController()
own = cont.getOwner

print “Game Engine has been running for”,
print own.time, " seconds."

alwaysPCoD = cont.getSensor(“PCoDrun”)

PCoDipo = cont.getActuator (“PCoDipoplay”)

I’m only just beginning python, but I have prior programming experience in…basic languages such as Turing and VB.
I was going to try to get it to play with IPOS, but I’m not sure if it will work.
What syntax would I need for this?? [Want to use python…]

I really hope someone can help me out!