Javascript Get Year Function In Python Practice