I know this is an old question, but if anyone is still looking for a python based, cross platform ramdisk, check out http://github.com/clockworksspheres/ramdisk
disclaimer: I am one of the authors, and the current maintainer.
It is a cross platform python ramdisk that can either be used as either a script, or as a library.
The Windows part needs work before it's fully functional.
The script/app is a python interface that's the same across platforms, and underneath handles the platform specific details. Binaries for Linux and Windows as well as an app for macOS are created with PyInstaller.
The macOS and Linux ramdisk sections rely on the OS facilities to create the ramdisk, the Windows one relies on Imdisk being installed.