def runpov(l,f):
    a =  writepovfile(u.flatten(l),
                      "/home/umar/povrayfiles/"+f+".pov")
    u.shellcommand(["povray",
                    "-O/tmp/"+f+".png",
                    "/home/umar/povrayfiles/"+f+".pov"])
    u.shellcommand(["cp",
                    "/tmp/"+f+".png",
                    "/home/umar/public_html/"+f+".png"])
def writepovfile(l,f):
    u.writefile("".join(u.flatten(l)),f)
    return f+" written"