1 - file_get_contents & file_put_contents
# file_get_contents function
def file_get_contents(filename):
	content=""
	if not os.path.isfile(filename): return false
	f = open(filename, 'r')
	try:
		content=f.read(1000000).decode('utf8')
	finally:
		f.close()
	return content

# file_put_contents function
def file_put_contents(filename,data):
	if not os.path.isfile(filename): return false
	f = open(filename, 'w')
	f.write(data.decode('utf8'))
	f.close()