new functions for getting display info added
helper for displayinfo + python example added