a python rendition of the c function 'memfrob'. I didn't find any others online to perform this specific function, so if you need it, do with it what you wish. I'm not a python programmer by any means, and this wasn't written to be pretty, but it gets the job done.