Convert R To Python Programming