copy code from someone else and make a pyhelper