<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Change the Minecraft world using Python
The Pyramid
This program links Python to Minecraft and uses that link to change things in the Minecraft world. In the game, move your player to an open area, then work your way through the blocks of code below.
First, we need to bring in some libraries of code that actually do the linking. Python does this with the import command.
Step1:  Connect to the Minecraft server, store the connection in a variable named world
Step2:  Next, set some variables to customize the pyramid. You might come back here later to change these values to build bigger pyramids, smaller pyramids, or ones made out of different stuff.
Step3:  Find out where the player is in the world. Store the current position in variables named x, y, and z
Step4:  Now, get busy building the pyramid.
Step5:  Finally, move the player to best seat in the house
<ASSISTANT_TASK:>
Python Code:
import mcpi.minecraft as minecraft
import mcpi.block as block
from time import sleep
Explanation: Change the Minecraft world using Python
The Pyramid
This program links Python to Minecraft and uses that link to change things in the Minecraft world. In the game, move your player to an open area, then work your way through the blocks of code below.
First, we need to bring in some libraries of code that actually do the linking. Python does this with the import command.
End of explanation
world  =  minecraft.Minecraft.create()
Explanation: Connect to the Minecraft server, store the connection in a variable named world:
End of explanation
height    =  5
material  =  block.COBBLESTONE
Explanation: Next, set some variables to customize the pyramid. You might come back here later to change these values to build bigger pyramids, smaller pyramids, or ones made out of different stuff.
End of explanation
[x,y,z] =  world.player.getPos()
[x, y, z]
Explanation: Find out where the player is in the world. Store the current position in variables named x, y, and z:
End of explanation
# This variable will track the current level being created inside the loop
level  =  1
# Execute the loop, building from the bottom up
while level <= height:
    print "Level " + str(level)  # Print the levels as we build them
    sleep(0.5)
    world.setBlocks( x - level, y + height - level, z - level,
                     x + level, y + height - level, z + level, material )
    level  =  level + 0.5
Explanation: Now, get busy building the pyramid.
End of explanation
# Put the player on top of the pyramid!
world.player.setPos( x, y + height, z )
world.postToChat("Done building pyramid!")
Explanation: Finally, move the player to best seat in the house:
End of explanation
<END_TASK>