Added Python3 code structure