Here is my code:

```
name = raw_input("Title:")
Author = raw_input("Author:")

file = open(name+'.txt', 'a')
file.write("Title:" + name + "\n" + "Author:" + Author + "\n")

```

This part should ask for continuous contents unless you type `'x'`:

```
Contents = raw_input
while Contents != "x":
Contents = raw_input("Content:")
file.write(Contents+"\n")
if Contents != "x":
    break
file.close()

```

This part should open the text and read the file and get the total of the vowels in the contents:

```
p = 0
file = open(name+'.txt')
j = file.read()
for i in Contents:
    if i in "aeiouAEIOU":
        p += 1
print p
file.close()

```