cmd.select('asp1', 'resn asp within %s of resn his' %(3))
cmd.select('asp2', 'resn asp within %s of resn ser'%(7))
cmd.select('asp', 'byres asp1 and byres asp2') 
cmd.select('his1', 'resn his within %s of asp' %(4))
cmd.select('his2', 'resn his within %s of resn ser' %(4))
cmd.select('his', 'byres his1 and byres his2') 
cmd.select('ser1', 'name og within %s of name ne2' %(3.5))
cmd.select('ser2', 'resn ser within %s of asp' %(7))
cmd.select('ser', 'byres ser1 and byres ser2') 
cmd.select('Motif', 'ser(his(asp))') 
cmd.deselect()
cmd.delete('asp')
cmd.delete('his')
cmd.delete('ser')
cmd.delete('asp1')
cmd.delete('his1')
cmd.delete('ser1')
cmd.delete('asp2')
cmd.delete('his2')
cmd.delete('ser2')
cmd.hide("everything","all")
cmd.show("cartoon", "all")
cmd.set("cartoon_transparency","0.5", "all")
cmd.show("sticks","Motif")
cmd.color("grey","all")
cmd.color("oxygen","(elem O and Motif)")
cmd.color("nitrogen","(elem N and Motif)")
cmd.color("sulfur","(elem S and Motif)")
cmd.color("hydrogen","(elem H and Motif)")
cmd.color("white","(elem C and Motif)")
cmd.deselect()
cmd.orient("Motif")
