added python attributes and methods