added python sample for scheduling resource operation