removed unnecessary python code