def getFMPro(url, user=""): import os if user =="": f = os.popen("curl -s 'http://localhost:8889/"+ url+"'","r") else: f = os.popen("curl -s -u "+user+" 'http://localhost:8889/"+ url+"'","r") return (f.read())