I came across this post and found out about Copy_management().
Is it possible to copy an in_memory feature to another in_memory feature?
I tried to test it using the following code, which fails:
shp = r"D:\test\somefile.shp"
bufferOne = arcpy.Buffer_analysis(shp,r"in_memory\bufferOne",'1 meters')
copyOfFirst = arcpy.Copy_management(bufferOne,r'in_memory\BufferOneCopy')
Trying the exact same thing with absolute paths, instead of in_memory works fine. Therefore I assume you cannot copy from in_memory to in_memory, or am I missing something? Would there be a way to achieve the same effect?